import os



if __name__ == "__main__":
    p = os.getcwd()
    print(p)

    i = p.rfind('\\')

    print(p[:i])
